949eed
@@ -141,7 +141,8 @@
public Checker tryCreate(String pattern) {
    */
   private static class ComplexCheckerFactory implements CheckerFactory {
     public Checker tryCreate(String pattern) {
-      return new ComplexChecker(UDFLike.likePatternToRegExp(pattern));
+      // anchor the pattern to the start:end of the whole string.
+      return new ComplexChecker("^" + UDFLike.likePatternToRegExp(pattern) + "$");
     }
   }
 }
